using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter16
{
	/// <summary>
	/// Example04: The Speed of a Pulse on a Cord
	/// A uniform cord has a mass 0.300 kg and a length of 
	/// 6.00 m(Fig. 16.12). The cord passes over a pulley and 
	/// supports a 2.00 kg object. Find the speed of a pulse 
	/// traveling along this cord.
	/// v = 19.8 m/s
	/// </summary>
	public class Example04
	{
		public Example04()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Mass m = new L.Mass();
			m.kg = 0.3;
			L.Length l = new L.Length();
			l.m = 6.0;
			L.Force T = new L.Force();
			T.Z = 2.0*L.Constant.AccelerationOfGravity;
			double v = L.Wave.SpeedOfWaveOnString(T,m,l);
			result += Convert.ToString(v);
		}
	}
}
